home *** CD-ROM | disk | FTP | other *** search
- public class FlyRegion extends Codex {
- private String _pathName;
- private float _speed;
- private boolean bRun;
- public static String[] _params = new String[]{"Path name", "Speed;120"};
-
- public FlyRegion(String pathName, float speed) {
- this._pathName = pathName;
- this._speed = speed;
- }
-
- public void restore(int flags) {
- this.bRun = CodexSequence.RestoreBoolean();
- }
-
- public void entered(int guid, int causeGUID, int captureID) {
- if (Codex.IsPlayerGuid(causeGUID)) {
- if (!this.bRun) {
- CodexCamera.PlayPath(CodexPlayer.GetCurrentPlayer(), ((Codex)this).GetGUID(), this._pathName, this._speed);
- this.bRun = true;
- }
- }
- }
-
- public void save(int flags) {
- CodexSequence.SaveBoolean(this.bRun);
- }
-
- public void pathended(int clientGuid) {
- CodexCamera.Release(0);
- }
- }
-